Skip to content

Fixed #464#576

Merged
fgreinacher merged 2 commits intoTestableIO:masterfrom
PeterDowdy:bugfix/464
Apr 17, 2020
Merged

Fixed #464#576
fgreinacher merged 2 commits intoTestableIO:masterfrom
PeterDowdy:bugfix/464

Conversation

@PeterDowdy
Copy link
Copy Markdown
Contributor

Fixed #464 by using the test case provided. The change is small: StreamReader honours BOMs, but to preserve big-endian Unicode support you must pass an encoding in that case. Since encoding is always provided into that method, I pass it always.

Comment thread System.IO.Abstractions.TestingHelpers/MockFile.cs
@fgreinacher fgreinacher merged commit 2b3700f into TestableIO:master Apr 17, 2020
@fgreinacher
Copy link
Copy Markdown
Contributor

Nice, simple fix. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MockFile.ReadAllLines does not deal with BOM correctly

2 participants